import java.awt.Point;

public class PolygonPointCalculation {

	
	final static Point[] GetVertex(int high, int sides)
	{
		Point vertex[] = new Point[sides];
		int cX = 0;
		int cY = 0;
		
		for(int i = 1; i <= sides; i++)
		{
			double ang = i * (2 * Math.PI) / sides;
			vertex[i-1] = new Point();
			vertex[i-1].x = (int) (cX + high * Math.cos(ang));
			vertex[i-1].y = (int) (cY + high * Math.sin(ang));			
		}
		return vertex;
	}
	

}
